﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace DO.Workflows
{
    public abstract class WorkflowTrigger:WorkflowComponentBase
    {
        #region props
        public abstract TriggerType TriggerType { get; }
        #endregion

        #region methods
        public abstract bool CanRun();
        public abstract void UpdateNextRun();
        public abstract ResultBase[] ProcessTrigger(ref WorkflowTriggerInstructionBase instruction);
        #endregion
    }
}
